#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#import <UIKit/UIPreferencesTable.h>
#import <UIKit/UIPreferencesTextTableCell.h>
#import <UIKit/UISwitchControl.h>
#import <UIKit/UISegmentedControl.h>
#import <UIKit/UISliderControl.h>
#import "HTTPProcessor.h"
#import "UIPreferencesTableButton.h"

#define NUM_GROUPS 1
#define CELLS_PER_GROUP 4

@interface Page1 : UIPreferencesTable
{
    UIPreferencesTableCell *groupcell[NUM_GROUPS];

	HTTPProcessor *processor;
	
	UIPreferencesTableCell *buttons[4];
	
	NSDictionary *prefs;
}

- (id)initWithFrame:(CGRect)rect;
- (int)numberOfGroupsInPreferencesTable:(UIPreferencesTable *)aTable;
- (UIPreferencesTableCell *)preferencesTable:
    (UIPreferencesTable *)aTable
    cellForGroup:(int)group;
- (float)preferencesTable:(UIPreferencesTable *)aTable
    heightForRow:(int)row
    inGroup:(int)group
    withProposedHeight:(float)proposed;
- (BOOL)preferencesTable:(UIPreferencesTable *)aTable
    isLabelGroup:(int)group;
- (UIPreferencesTableCell *)preferencesTable:
    (UIPreferencesTable *)aTable
    cellForRow:(int)row
    inGroup:(int)group;
- (void) setPreferences:(NSDictionary *)_prefs;	
- (NSString *) cellForNumber:(int)number;
- (NSString *) titleForNumber:(int)number;
- (void) createControls;
- (void) refresh;
- (NSString *) cellLetter;
- (NSString *) title;

@end
